-
-
Notifications
You must be signed in to change notification settings - Fork 366
ref: Update SentryCrashReportConverter for improved nullability handling #6208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Renamed SentryKSCrashReportConverterTests to SentryCrashReportConverterTests for consistency. - Enhanced nullability checks in SentryCrashReportConverter to prevent potential crashes. - Added new test cases to validate handling of various edge cases in crash report conversion.
@cursor review |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6208 +/- ##
=============================================
+ Coverage 86.787% 86.800% +0.013%
=============================================
Files 438 438
Lines 37328 37350 +22
Branches 17434 17473 +39
=============================================
+ Hits 32396 32420 +24
+ Misses 4886 4885 -1
+ Partials 46 45 -1
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
2b7e29d | 1226.55 ms | 1245.44 ms | 18.89 ms |
a9fac2e | 1212.45 ms | 1219.67 ms | 7.22 ms |
884b224 | 1221.11 ms | 1255.88 ms | 34.77 ms |
ccf1278 | 1226.84 ms | 1248.51 ms | 21.67 ms |
f92cfa9 | 1228.45 ms | 1251.33 ms | 22.88 ms |
3279d4e | 1215.76 ms | 1256.45 ms | 40.69 ms |
119ab1c | 1226.79 ms | 1254.55 ms | 27.76 ms |
7f4bf81 | 1241.73 ms | 1270.66 ms | 28.93 ms |
0ede342 | 1233.47 ms | 1262.29 ms | 28.82 ms |
f5666e7 | 1227.08 ms | 1260.18 ms | 33.10 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
2b7e29d | 23.75 KiB | 933.03 KiB | 909.29 KiB |
a9fac2e | 23.75 KiB | 879.53 KiB | 855.78 KiB |
884b224 | 23.75 KiB | 879.55 KiB | 855.80 KiB |
ccf1278 | 23.75 KiB | 877.15 KiB | 853.40 KiB |
f92cfa9 | 23.75 KiB | 855.38 KiB | 831.62 KiB |
3279d4e | 23.75 KiB | 938.32 KiB | 914.57 KiB |
119ab1c | 23.75 KiB | 993.70 KiB | 969.95 KiB |
7f4bf81 | 23.75 KiB | 919.70 KiB | 895.95 KiB |
0ede342 | 23.75 KiB | 928.15 KiB | 904.40 KiB |
f5666e7 | 23.75 KiB | 963.18 KiB | 939.43 KiB |
Previous results on branch: philprime/fix-crash-reporter-null-handling
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
94f6473 | 1223.04 ms | 1251.38 ms | 28.33 ms |
81f34e6 | 1222.77 ms | 1248.67 ms | 25.90 ms |
88d138b | 1222.39 ms | 1253.94 ms | 31.55 ms |
97f2294 | 1217.53 ms | 1250.04 ms | 32.51 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
94f6473 | 23.75 KiB | 977.41 KiB | 953.66 KiB |
81f34e6 | 23.74 KiB | 976.91 KiB | 953.17 KiB |
88d138b | 23.74 KiB | 977.01 KiB | 953.27 KiB |
97f2294 | 23.75 KiB | 980.98 KiB | 957.23 KiB |
…eporter-null-handling
…eporter-null-handling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ing (#6208) - Renamed SentryKSCrashReportConverterTests to SentryCrashReportConverterTests for consistency. - Enhanced nullability checks in SentryCrashReportConverter to prevent potential crashes. - Added new test cases to validate handling of various edge cases in crash report conversion.
📜 Description
💡 Motivation and Context
Closes #6207
#skip-changelog
Note
Improves null-safety in crash report conversion, makes
SentryThread.threadId
optional on SDK_V9, adjusts debug-image fetching with null unwraps, and adds tests for edge cases.SentryCrashReportConverter.m
):timestamp
, user context merge, breadcrumbs (default category, guard timestamp type), notable addresses, and Swift crash info messages.index
; ignores non-NSNumber
values, allowsnil
(recrash), and fixesisMain
calculation to be null-safe.type
strings (mach/signal/user) when missing.debugMeta
robustly by skippingnil
imageAddress
values.SentryThread.threadId
is nowNSNumber?
andinitWithThreadId:
acceptsnil
.SENTRY_UNWRAP_NULLABLE
when fetching debug images forevent.threads
.SentryCrashReportConverterTests.*
.Written by Cursor Bugbot for commit 7fde234. This will update automatically on new commits. Configure here.